package com.tool.student;

import java.util.ArrayList;

public class StudentTool {
    private StudentTool() {
    }

    public static int maxAge(ArrayList<Student> list){
        int max=list.get(0).getAge();
        for (int i = 1; i < list.size(); i++) {
            if (list.get(i).getAge()>max){
                max=list.get(i).getAge();
            }
        }
        return max;
    }

}
